StringScanner.GetLineNumber Function
Syntax
Line_Number as N = GetLineNumber as N()
Arguments
- Line_Number
The line number that contains the current offset into the buffer.
Description
Determine which line we are one.
Discussion
The <StringScanner>.GetLineNumber() function returns the line number that contains the current offset into the StringScanner buffer. Lines are defined by CR-LF.
Example
dim scanner as StringScanner dim txt as C txt = <<%text% This is line one and this is line two and finally line three %text% scanner = stringscanner.Create(txt) ? scanner.ScanOver(24) = This is line one and th ? scanner.GetLineNumber(2) = 2
See Also